cc.Class({
    extends: cc.Component,

    properties: {
	
		progress: {
            default: null,
            type: cc.ProgressBar
       },

    },
	
	onLoad: function () {
		
		this.processNmb = 0.1;
				
	},

    update (dt) {
		
		if(this.processNmb<1){
		
			this.processNmb+=0.01;
			
			this.progress.progress = this.processNmb;
			
		}else{
			
			cc.director.loadScene('story');
			
		}
		
	}
});
